<%@page contentType="text/html;charset=utf-8" language="java" %>

<div class="nav-box">
	<ul class="nav">
		<li class="nav-li" id="userList"><a href="user.jsp" target="_self"><i class="iconfont icon-liebiao1"></i> 用户列表</a></li>
		<li class="nav-li" id="userAdd"><a href="user_add.jsp" target="_self"><i class="iconfont icon-tianjiayonghu"></i> 用户新增</a></li>
		<li class="nav-li" id="userDelete"><a href="javascript:userDeleteByCheck();"><i class="iconfont icon-shanchu"></i> 批量删除</a></li>
		<!--
		<li class="nav-li" id="userModify"><a href="javascript:userModify();"><i class="iconfont icon-yongyan"></i> 用户修改</a></li>
		<li class="nav-li" id="userPwdRest"><a href="javascript:userPwdRest();"><i class="iconfont icon-chuangyi"></i> 密码重置</a></li>
		 -->
	</ul>
</div>

<script>
	/**
	 * 根据实际显示隐藏菜单
	 * 
	 * @param  {[type]} type [description]
	 * @return {[type]}      [description]
	 */
	function navShow (type) {
		$("#"+type).find("a").addClass("nav-li-sel");

		switch(type){
			case "userAdd" : {
				$("#userModify").remove();
				$("#userDelete").remove();
				$("#userPwdRest").remove();
				break;
			}
			case "userModify" : {
				$("#userAdd").remove();
				$("#userDelete").remove();
				$("#userPwdRest").remove();
				break;
			}

		}
	}
</script>
